package com.arrcen.medicen.core.match.helper;

import com.arrcen.medicen.core.match.model.TokenUser;
import com.auth0.jwt.JWT;
import com.auth0.jwt.algorithms.Algorithm;

public class TokenHelper {
    public static String getToken(TokenUser user) {
        String token="";
        token= JWT.create().withAudience(user.getId())
                .sign(Algorithm.HMAC256(user.getPassword()));
        return token;
    }
}
